package com.mvnframe.service;
import com.mvnframe.mapper.StudentMapper;
import org.apache.log4j.Logger;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Hashtable;
import java.util.List;
import java.util.Map;

@Service
public class StuServiceImpl implements StuService {
    Logger log = Logger.getLogger(StuServiceImpl.class);
    @Autowired
    StudentMapper studentMapper;



    @Override
    public List getStus(String sname, int pageNo) {
        if (sname == null) sname = "";
        Map map=new Hashtable();
        map.put("sname",sname);
        map.put("pageNo",pageNo);
        return studentMapper.getStu(map);
    }



}

